package com.ruoyi.system.domain;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 
 * @TableName bus_model_parts
 */
public class BusModelParts implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 产品编号
     */
    private String partsCode;

    /**
     * 车型
     */
    private byte[] busModel;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 产品编号
     */
    public String getPartsCode() {
        return partsCode;
    }

    /**
     * 产品编号
     */
    public void setPartsCode(String partsCode) {
        this.partsCode = partsCode;
    }

    /**
     * 车型
     */
    public byte[] getBusModel() {
        return busModel;
    }

    /**
     * 车型
     */
    public void setBusModel(byte[] busModel) {
        this.busModel = busModel;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BusModelParts other = (BusModelParts) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPartsCode() == null ? other.getPartsCode() == null : this.getPartsCode().equals(other.getPartsCode()))
            && (Arrays.equals(this.getBusModel(), other.getBusModel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPartsCode() == null) ? 0 : getPartsCode().hashCode());
        result = prime * result + (Arrays.hashCode(getBusModel()));
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", partsCode=").append(partsCode);
        sb.append(", busModel=").append(busModel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}